package br.com.maiscontrole.view.facebook;

import org.springframework.social.connect.Connection;
import org.springframework.social.connect.ConnectionSignUp;
import org.springframework.social.connect.UserProfile;

public class FacebookSignUp implements ConnectionSignUp{

	@Override
	public String execute(Connection<?> connection) {
		UserProfile profile = connection.fetchUserProfile();
		return profile.getUsername();
	}
}
